]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/texture-cache: Change bind_cairo_surface_property to transfer full
authorSebastian Keller <skeller@gnome.org>
Thu, 25 Feb 2021 22:56:11 +0000 (23:56 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 8 Mar 2021 09:21:25 +0000 (09:21 +0000)
This is how the code works and how it is already used from the C side.
There would also be no point in keeping this transfer none, because
textures generated from this function will not be shared and are not
kept in the cache.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1718>

src/st/st-texture-cache.c

index 15c33f029655957ccd79091e696fd2827ac68da5..4e878a722e500371fee72645f22cadbd95a31783 100644 (file)
@@ -822,7 +822,7 @@ st_texture_cache_free_bind (gpointer data)
  * If the source object is destroyed, the texture will continue to show the last
  * value of the property.
  *
- * Returns: (transfer none): A new #GIcon
+ * Returns: (transfer full): A new #GIcon
  */
 GIcon *
 st_texture_cache_bind_cairo_surface_property (StTextureCache    *cache,